package com.easylinkin.linkappapi.knowledgebase.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 知识库关联用户表
 * </p>
 *
 * @author xy
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkapp_knowledge_base_ref_user")
public class BaseRefUser extends Model<BaseRefUser> {

  private static final long serialVersionUID = 1L;

  /**
   * 知识id
   */
  @TableId("knowledge_id_")
  private Long knowledgeId;

  /**
   * 用户id
   */
  @TableField("user_id_")
  private String userId;


  @Override
  protected Serializable pkVal() {
    return this.knowledgeId;
  }

}
